<?php

namespace app\conversations\controller;
use app\common\controller\PCBase;
use app\conversations\logic\ReamazeTagLogic;
use Throwable;
use  think\App;
class ReamazeTag extends PCBase
{

    public function initialize(): void
    {
        parent::initialize();
    }

    /**
     * index
     * @throws Throwable
     */
    public function index()
    {
        $params     = $this->request->post();
        return (new ReamazeTagLogic())->index($params);
    }

    
    /**
     * 添加
     * @throws Throwable
     */
    public function add()
    {
        $post = $this->request->post();
        $ReamazelogLogic = new ReamazeTagLogic();
        $result = $ReamazelogLogic->add($post);
        return $result;
    }

    /**
     * 回显
     * @throws Throwable
     */
    public function find($id = null)
    {
        $post = $this->request->post();
        $id = $post['id'] ?? 0;
        $ReamazelogLogic = new ReamazeTagLogic();
        $result = $ReamazelogLogic->find($id);
        return $result;
    }
    /**
     * 编辑
     * @throws Throwable
     */
    public function edit()
    {
        $post = $this->request->post();
        $ReamazelogLogic = new ReamazeTagLogic();
        $result = $ReamazelogLogic->edit($post);
        return $result;
    }
    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $post = $this->request->post();
        $ReamazelogLogic = new ReamazeTagLogic();
        $result = $ReamazelogLogic->export($post);
        return $result;
    }


}